package com.activemq.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

/**
 * 消费者
 *
 * @author milicool
 * Created on 2018/9/13
 */
@Service
public class Consumer {
    private Logger log = LoggerFactory.getLogger(Consumer.class);

    @JmsListener(destination = "spring_queue_test")
    public void receiveTestQueue(String text) {
        log.info("接收到queue消息: {}", text);
    }
}
